import lombok.ToString;

@ToString
public class Node {

  private String id;
  private boolean master;

  public Node(String id) {
    this.id = id;
  }

  public Node(String id, boolean master) {
    this.id = id;
    this.master = master;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public boolean isMaster() {
    return master;
  }

  public void setMaster(boolean master) {
    this.master = master;
  }
}
